import { createPinia } from "pinia";
import type { App } from 'vue'
import useLoginStore from './login/login'

const pinia = createPinia();

function registerStore(app: App<Element>) {
  app.use(pinia)
  // 重新获取数据,页面刷新的时候重新加载
  const loginStore = useLoginStore()
  loginStore.loadLocalCacheAction()
}

export default registerStore;